# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-pytz_deprecation_shim
_pyname=pytz_deprecation_shim
pkgver=0.1.0
_pyver=$pkgver.post0
pkgrel=0
arch='noarch'
pkgdesc="Shims to help you safely remove pytz"
url="https://pypi.org/project/$_pyname/"
license="MIT"
makedepends="
	py3-setuptools
	py3-wheel
	py3-installer
	py3-gpep517
	"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$_pyver.tar.gz"
builddir="$srcdir"/$_pyname-$_pyver
options="!check" # No testsuite
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl
}

sha512sums="
201eea777f4da9def1b060911da5eaa89652f6716d5608278fdc94a2f67af5ea23a8b667cb181e03d5edd7f0a07f4954047621668f4c2e7bb325dd07f454d0b6  py3-pytz_deprecation_shim-0.1.0.tar.gz
"
